package com.chequan.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import com.chequan.base.CommonResult;



@RestController
@RequestMapping("/order")
public class CarOrderController {
	
	@Resource
	private RestTemplate restTemplate;
	
	@GetMapping("/infoList")
	public CommonResult<Object> findInfoList() throws Exception {
		
		Object obj = restTemplate.getForObject("http://CHEQUAN-SERVICE-CAR/car/infoList/00000fca737611eabdfa00163e16e00c", Object.class);
		
		return new CommonResult<Object>("200","success",obj);
	}

}
